package hied.learning;

import hied.ExampleList;

import java.io.File;

import org.simpleframework.xml.Serializer;
import org.simpleframework.xml.core.Persister;

public class LearningApplication {
	public static void main(String[] args) throws Exception {
		Serializer serializer = new Persister();
		File source = new File("target.xml");
		ExampleList result = serializer.read(ExampleList.class, source);

		Learning learning = new Learning(result);

		File target = new File("knowledge.xml");
		serializer.write(learning.getKnowledge(), target);
	}
}
